package com.example.converter.enums;

import com.example.converter.config.ConverterBaseEnum;

public enum Animal implements ConverterBaseEnum {
    DOG(1, "狗"),
    PIG(2, "猪"),
    CAT(3, "猫");

    Animal(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    Integer value;
    String msg;

    @Override
    public String toViewValue() {
        return String.valueOf(value);
    }
}
